Release 10.1A: OpenEdge Data Management:
SQL Reference
COUNT
Computes either the number of rows in a group of rows or the number of non-
NULLvalues in a group of values.Syntax
Example
This example illustrates the
COUNTfunction:
Notes
- The keyword
DISTINCTspecifies that the duplicate values are to be eliminated before computing the count.- If the argument to
COUNTfunction is ‘*’, then the function computes the count of the number of rows in a group.- If the argument to
COUNTfunction is not ‘*’, thenNULLvalues are eliminated before the number of rows is computed.- The argument
column_reforexpressioncan be of any type.- The result of the function is of integer type. The result is never
NULL.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |